let baseUrl = process.env.NODE_ENV == 'development' ? '/api' : ''
const config = {
    // faster
    topUrl: baseUrl + '/y/top5',
    addressUrl: baseUrl + '/transport/addr/three',
    destUrl: baseUrl + '/destination',
    saveCustomUrl: baseUrl + '/kj/customize/new',
    delCustomUrl: baseUrl + '/kj/customize/del',
    catalogUrl:  baseUrl + '/catalog/lis',
    classifyUrl: baseUrl + '/classify/lis',
    catalogInputUrl: baseUrl + '/transport',
    tackleUrl: baseUrl + '/tackle',
    submitUrl: baseUrl + '/y/submit/order',
    customUrl: baseUrl + '/kj/customize/lis',
    // his-alter
    transportUrl: baseUrl + '/transport',    //类别输入 // useless
    destinationUrl: baseUrl + '/startend',// /destination
    siteUrl: baseUrl + '/finish',
    siteNoUrl: baseUrl + '/finish/no', // useless
    // his
    releaseUrl: baseUrl + '/y/submit/his/list',  //直接发布，多单发布，发布为今日单
    alterUrl: baseUrl + '/y/submit/his',   //修改发布
    tomorrowUrl: baseUrl + '/y/submit/his/tomorrow', //预约明天发布
    remindUrl: baseUrl + '/y/his/remind',  //日历上明后两天的预约单标志
    listUrl: baseUrl + '/y/order/his',   //列表
    fyListUrl: baseUrl + '/fy/his',
    infoUrl: baseUrl + '/orders/info',   //查看详情
    editUrl: baseUrl + '/orders/edit',   //催单
    cancelUrl: baseUrl + '/y/edit/his', //销单
    // lis
    commentUrl: baseUrl + '/kj/evaluation',
    orderLisUrl: baseUrl + '/y/orderlis',
    dayLisUrl: baseUrl + '/sfi/orderlis',
    monthLisUrl: baseUrl + '/sfi/orderlis/month',
    // order-projects
    patientUrl: baseUrl + '/fy/line',//病人  //patientUrl:'http://112.74.164.191:8888/fy/line',
    // order
    rehabUrl: baseUrl + '/orders/rehab',
    sosUrl: baseUrl + '/y/submit/order/sos',
    // startAddress
    saveUrl: baseUrl + '/kj/origin/save',  //保存
    // order-details
    updateUrl: baseUrl + '/y/update/order',
    // layout & App.vue
    siteOriginUrl: baseUrl + '/kj/origin',
    printUrl: baseUrl + '/kj/print',
    logoutUrl: baseUrl +'/logout',
    getPhoneUrl: baseUrl +'/',
    // confirm
    wastecategoryUrl: baseUrl + '/w/wastecategory',
    wasteDetailsUrl: baseUrl + '/w/wastecategory/details',
    wasteConfirmUrl: baseUrl + '/w/wastecategory/confirm',
    getWasteCategoryUrl: baseUrl +'/w/wastecategory/confirm/lis', //医废确认 post json
    confirmSignUrl: baseUrl +'/w/wastecategory/confirm/sign', // POST JSON ids []int 需要签名的每张单的id
    wasteNumberUrl: baseUrl + '/w/last12step0',
    wasteExportUrl: baseUrl + '/w/excel/export',
    wasteExportDltUrl: baseUrl + '/w/excel/export/dlt',
    wasteExportDlUrl: baseUrl + '/w/excel/export/dl',
    wasteFindNameUrl: baseUrl + '/hw/findname', //szy number 带出人名
    // 医废总览
    postDetailsUrl: baseUrl + '/w/wastecategory/details',
    getOverviewDataUrl: baseUrl + '/w/wastecategory/ov/number',
    getOvMonthTotalUrl: baseUrl + '/w/wastecategory/ov/col/bymonth',
    getDateTotalUrl: baseUrl + '/w/wastecategory/ov/col/period',
    getWeekTotalUrl: baseUrl + '/w/wastecategory/ov/col/week',
    getMonthTotalUrl: baseUrl + '/w/wastecategory/ov/col/month',
    // 质控
    postSubmitControlUrl: baseUrl + '/w/qualitycontrol/submit',
    // 公告
    noticeLisUrl: baseUrl +'/kj/notice/lis',  //公告列表
    isKnowUrl: baseUrl +'/kj/notice/isknow', //公告已知悉
    // 维修下单
    mtClassifyUrl: baseUrl + '/support/bigsmall',
    mtTopClassifyUrl: baseUrl + '/support/top15',   // 常用报修
    mtAddressUrl: baseUrl + '/maintain/addr/multi',       // 维修5层地址
    mtSubmitUrl: baseUrl + '/support/submit',       // 维修下单
    mtOrderUrl: baseUrl + '/support/order',    // 查看当月维修单
    mtDetailsUrl: baseUrl + '/support/order/info',  // 单个维修单详情
    mtCommentUrl: baseUrl + '/support/eva',      // 评价维修单
    mtCancelUrl: baseUrl + '/support/clear',    // 维修销单
    diytimeUrl: baseUrl + '/w/wastecategory/diytime', // 医废自定义时间
    getHconfLisUrl: baseUrl + '/hconf/lis',  // 医废导出功能管制
    postHconfModUrl: baseUrl + '/hconf/mod',
    getDepartmentLisUrl: baseUrl + '/w/wastecategory/department/lis',
    getAloneKsUrl: baseUrl + '/w/wastecategory/alone/ks',
    getAloneKsTwiceUrl: baseUrl + '/w/wastecategory/alone/ks/twice',
    getDepartmentMyInfoUrl: baseUrl + '/w/wastecategory/department/myinfo',
    // 质控
    postControlUrl: baseUrl + '/w/quality/control',
    postSubmitControlUrl: baseUrl + '/w/qualitycontrol/submit',
    postControlListUrl: baseUrl + '/w/qualitycontrol',
    postSubmit2ControlUrl: baseUrl + '/w/qualitycontrol/submit2',
    //标签
    getWasteKsUrl: baseUrl + '/w/wastecategory/department/list',
    postConfirmCreateUrl: baseUrl + "/hwtag/new",
    getWasteLabelLisUrl: baseUrl + "/hwtag/lis",
    postWasteLabelModUrl: baseUrl + "/hwtag/mod",

    // 被服下单
    clothOrderColLisUrl: baseUrl + '/clothes/bar/xegg/lis', // 被服下单表格表头
    clothOrderLisUrl: baseUrl + '/clothes/bar/xegg', // 被服下单列表
    clothCustomBarUrl: baseUrl + '/clothes/bar/order/customize/lis', // 自定义模板信息
    clothSettingCustomTableUrl: baseUrl + '/clothes/bar/order/customize', // 被服设置模板列表
    clothSettingSaveDataUrl: baseUrl + '/clothes/bar/order/customize/keep', // 被服设置材料保存接口
    clothCheckOpenUrl: baseUrl + '/clothes/bar/loam/kjlr/bool', // 检测被服是否开通 包括被服下单 被服申领 被服设置
    clothApplicationListUrl: baseUrl + '/clothes/sl', // 被服申领列表
    clothApplicationListDetailUrl: baseUrl + '/clothes/issue/info', // 被服申领列表详情 传id
    addClothListDesUrl:baseUrl+ '/clothes/ps/des/add', // 添加异常备注
    clothProductUrl:baseUrl +  '/clothes/bar/product', // 被服下单接口
    clothOrderStatusUrl: baseUrl + '/clothes/sl/opt' // 被服订单状态更改接口  确认{"id":"","attach":2}  销单{"id":"","attach":4}
}
module.exports = config
